<?php

class Admin_Form_TypeProtocolSearch extends Zend_Dojo_Form
{
    public function init()
    {    	
        $this->setName("TypeProtocolSearch");
        $this->setMethod('post');
        $this->addAttribs(array('onSubmit'=>'return validate(this)'));
        
		$this->addElement('TextBox', 'description',array(
	        'label'          => 'Descrição: ',
         	'focus'          => true,
	        'invalidMessage' => 'Descrição inválido',
        	'style'      	 => 'width: 400px;',
		));

        $this->addElement('SubmitButton', 'button', array(
            'label'    => 'Pesquisar',
	        'required' => false,
	        'ignore' => true,
        ));    
        
        $this->addDisplayGroup(array('description','button'), 'search', array('legend'=>"Pesquisar")); 

    }
}

